<?php
// +----------------------------------------------------------------------
// | YFCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2016 http://www.rainfer.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: rainfer <81818832@qq.com>
// +----------------------------------------------------------------------

namespace app\admin\model;

use think\Model;
use think\Db;

/**
 * 用户信息模型
 * @package app\admin\model
 */
class Person extends Model
{

    /**性别配置**/
    private $confSex = array(
        '1' => '男',
        '2' => '女'
    );

    /**身份证类型**/
    private $confCertificateType = array(
        0 => '身份证',
        1 => '护照',
        2 => '军官证',
        3 => '士兵证',
        5 => '临时身份证',
        6 => '户口薄',
        7 => '其他个人证件',
        9 => '警官证',
        12 => '外国人居留证',
        21 => '边民出入境通行证',
        41 => '港澳台居民往来通行证'
    );

    private $resideceSettle = array(
        1 => '本地',
        2 => '外地',
        3 => '外籍',
        4 => '港澳地区',
        5 => '台湾地区',
        6 => '不详'
    );


    /**
     * 构造函数
     */
    public function __construct($name = '', $tablePrefix = '', $connection = '')
    {
        parent::__construct($name, $tablePrefix, $connection);
    }


    /**
     * 获取性别数组
     * @param none;
     * @return array 性别配置数组
     */
    public function getConfSex()
    {
        return $this->confSex;
    }


    /**
     * 获取证件类型数组
     * @param none;
     * @return array 证件类型配置数组
     */
    public function getConfCertificateType()
    {
        return $this->confCertificateType;
    }

    /*
     * 获取户口类型
     *
     */
    public function getResideceSettle()
    {
        return $this->resideceSettle;
    }

}
